package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Claimcount;
import cn.wolfcode.crm.domain.CompensationInfo;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface ICompensationInfoService {


    int deleteByPrimaryKey(Long id);

    int insert(CompensationInfo record);

    CompensationInfo selectByPrimaryKey(Long id);

    List<CompensationInfo> selectAll();

    int updateByPrimaryKey(CompensationInfo record);

    //根据accidentID查询数据库是否有数据,如果有先做删除操作
    CompensationInfo selectByaccidentId(Long accidentId);

    PageResult query(QueryObject qo);

    //根据paymentid查询数据返回
    Map<Object,Object> selectClaimcountBypaymentid(Long id);

    void saveclaimcount(Long id);
}
